package com.example.service.configuration.impl;

import com.example.bean.configuration.PingGuMoBan;
import com.example.bean.configuration.PingGuXiangGuanLi;
import com.example.bean.configuration.vo.LaoNianRenNengLiPingGuVo;
import com.example.bean.configuration.LaoNianRenNengLiPingGu;
import com.example.mapper.configuration.LaoNianRenNengLiPingGuMapper;
import com.example.service.configuration.LaoNianRenNengLiPingGuService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LaoNianRenNengLiPingGuServiceImpl implements LaoNianRenNengLiPingGuService {

    @Autowired
    LaoNianRenNengLiPingGuMapper mapper;

    @Override
    public PageInfo<LaoNianRenNengLiPingGu> getpage(LaoNianRenNengLiPingGuVo vo) {
        PageHelper.startPage(vo.getDqNum(),vo.getXsNum());
        PageInfo<LaoNianRenNengLiPingGu> page = new PageInfo<LaoNianRenNengLiPingGu>(mapper.getpage(vo));
        return page;
    }

    @Override
    public List<PingGuMoBan> xiala() {
        return mapper.xiala();
    }

    @Override
    public LaoNianRenNengLiPingGu getid(String noid) {
        PingGuXiangGuanLi xiang = mapper.getxiang(noid);
        return null;
    }
}
